<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  
</body>
</html>

<script>
// 对象补充
// 知识点一：
// var obj = {
//   [表达式]: [表达式]
// }
var obj = {
  ['a' + 'b']: 'abab'
};

// console.log(obj);




/* 
  var age = 30;
  var name = '小明';
  var ming = {
    age: age,
    name: name
  }

  以上代码简写：
  var ming = {
    age,
    name
  }

  console.log('ming', ming);
*/


/* 对象属性 也可以 放 函数

  var say = function() {
    console.log('say ... Yo');
  }

  var obj = {
    say,
    shuo: say
  }

  console.log('obj', obj.say === obj.shuo);

*/

</script>